import { DmgType, DmgTypeKey, UnitAttr } from "../../types/L_Type";
import UnitX from "../../entity/UnitX";
import L_Run from "../../utils/L_Run";
import DmgFormula from "../dmgabout/DmgFormula";
import AdditDmgBase from "./AdditDmgBase";


/**  */
export default class PyFireballEff extends  AdditDmgBase{

    // static thisEff:PyFireballEff;

    // static getInstance():PyFireballEff{
    //     if(this.thisEff==null){
    //         this.thisEff=new PyFireballEff()
    //     }
    //     return this.thisEff
    // }


    public execEffect(aux:UnitX,bux:UnitX,dmgv:number,dmgTypeKey:DmgTypeKey,extraDmgAttr?:UnitAttr,exclusiveAttr?:object): void {
        console.log("<!AD>",aux.name,"【触发攻击特效火球】,对",bux.name,"造成基础",dmgv,"点",dmgTypeKey,"伤害");
        L_Run.CreateEffectOnce(bux.unit,'Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl','chest')
        super.execDmg(aux,bux,dmgv,dmgTypeKey,extraDmgAttr)
    }





  
} 


 
 
 
 
 


  
